package cn.bitkit.base.annotation;

import cn.bitkit.base.constants.SensitiveType;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author changbo
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Sensitive {
	
	SensitiveType type() default SensitiveType.name;
	
	String encryptField() default "";

	String encryptFieldAuto() default "Enc";

	String hashField() default "";

	String hashFieldAuto() default "Hash";

	String maskField() default "";

	String maskFieldAuto() default "Mask";

}
